package com.fire.util.base;

public class ResultBody {
	// 返回状态码
	private Integer code = 200;
	// 返回消息内容
	private String message = "请求成功";
	// 返回内容object
	private Object data;

	public ResultBody() {
		super();
	}

	public ResultBody(Integer code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public static ResultBody goBack(Integer code, String message) {
		return new ResultBody(code, message);
	}

}
